<script setup lang="ts">
// props 实现父子组件通信，props数据只读
import Child from "./Child.vue";
import { ref } from "vue";
const info = ref(false)
const info1 ={
  test:[
    1,2,3,4,5,6
  ]
}
</script>

<template>
  <div class="box">
    <h1>我是父组件</h1>
    <hr />
    <Child :info="info" :info1="info1"></Child>
    <button @click="()=>{info=!info}">revok</button>

  </div>
</template>

<style scoped>
.box {
  width: 100vw;
  height: 500px;
  background: wheat;
}
</style>
